import request from '@/utils/request'

export const allVip = () => {
  return request.get('/user/vip/all')
}

export const allVipType = () => {
  return request.get('/admin/vip/type/list')
}

export const createVipType = (vipTypes) => {
  return request.post('/admin/vip/types', vipTypes)
}

export const updateVipType = (vipTypes) => {
  return request.put('/admin/vip/types', vipTypes)
}

export const deleteVipType = (id) => {
  return request.delete(`/admin/vip/types/${id}`)
}
